package entities

import "mlgmd.com/hearsay/base"

// Activity 记录用户活动，发放打卡奖励
type Activity struct {
	Id          int    `xorm:"pk autoincr" json:"id"`
	UserId      int    `json:"userId"`
	CreatedTime int64  `json:"createdTime"`
	TargetType  string `json:"targetType"`
	TargetId    int    `json:"targetId"`
	Coin        int    `json:"coin"`
}

func init() {
	base.Must(base.DB.Sync(&Activity{}))
}
